#include <REGX52.H>
#include "Nixie.h"
#include "MatrixKey.h"


void main() {
	unsigned char pressKey;
	unsigned char showKey = 0;
	Nixie(1, 0);
	while (1) {
		pressKey = MatrixKey();
		if (pressKey != 0) {
			showKey = pressKey;
		}
		
		if (showKey < 10) {
			Nixie(1, showKey);
		} else {
			Nixie(1, 1);
			Nixie(2, showKey - 10);
		}
		
	}
	
}
